Displaying method, animation image generating method, and electronic device configured to execute the same

ABSTRACT

A method for of playing an animation image, the method including: obtaining a plurality of images; displaying a first image of the plurality of images; detecting a first event as a trigger to play the animation image for a first object of the first image; and playing the animation image for the first object using the plurality of images.

CROSS-REFERENCE TO RELATED APPLICATION(S)

This application is a continuation of U.S. application Ser. No.14/809,571 filed on Jul. 27, 2015, which claims priority fromProvisional Indian Patent Application No. IN 3653/CHE/2014 filed on Jul.25, 2014, in the Indian Patent Office, Indian Patent Application No. IN3653/CHE/2014 filed on May 14, 2015, in the Indian Patent Office, andKorean Patent Application No. 10-2015-0094368 filed on Jul. 1, 2015, inthe Korean Intellectual Property Office, the disclosures of which areincorporated herein by reference in their entireties.

TECHNICAL FIELD

Aspects of one or more exemplary embodiments relate to electronicdevices for displaying images and methods for controlling the same, and,more specifically, to electronic devices for displaying animation imagesand methods for controlling the same.

BACKGROUND

There is a demand for image capturing/displaying-enabled electronicdevices, including small image capturing/displaying-enabled electronicdevices such as smartphones, tablet personal computers (PCs), anddigital cameras. Conventional electronic devices may capture and storeimages or may display the stored images at a user's request. Aconventional electronic device may communicate with another electronicdevice to receive images from the other electronic device and maydisplay the received images at a user's request.

Related art electronic devices in the related art may capture anddisplay animation images. An animation image may include multiple imagescaptured over time. Related art electronic devices may display theanimation image by quickly switching the multiple images, so that theimages appear to be animated. A related art electronic device may storeanimation images, transmit the stored animation images to anotherelectronic device or receive stored animation images from the otherelectronic device. Accordingly, an animation image captured by a firstuser may be viewed by a second user through the second user's electronicdevice.

Related art electronic devices may capture and display animation images.However, such electronic devices may simply display a plurality ofcaptured images in sequence. In other words, the related art electronicdevices are provided merely with methods for displaying an animationimage in which the whole image is changed. In other words, there is nodisclosure of displaying an animation in which only part of an image ischanged.

The above information is presented as background information only toassist with an understanding of one or more exemplary embodiments. Nodetermination has been made, and no assertion is made, as to whether anyof the above might be applicable as prior art with regard to the presentdisclosure.

SUMMARY

Aspects of one or more exemplary embodiments have been conceived toaddress the above issues. An aspect of various embodiments is to providean electronic device that, when a particular object is designated, playsan animation image corresponding to the object, and a method forcontrolling the same.

In accordance with aspects of various exemplary embodiments, there isprovided a method for of playing an animation image including: obtaininga plurality of images; displaying a first image of the plurality ofimages; detecting a first event as a trigger to play the animation imagefor a first object of the first image; and playing the animation imagefor the first object using the plurality of images.

The method may further include maintaining a still display of objectswithin the first image other than the first object.

The method may further include segmenting the first object in each ofthe plurality of images.

The segmenting the first object in each of the plurality of images mayinclude: obtaining a respective depth map for each of the plurality ofimages; and segmenting the first object in each of the plurality ofimages based on the respective depth maps.

The segmenting the first object in each of the plurality of images mayinclude: obtaining respective image information for each of theplurality of images; and segmenting the first object in each of theplurality of images based on the respective image information.

The detecting the first event may include detecting a touch on an areacorresponding to the first object of the displayed first image ordetecting a user's view correspond to the area corresponding to thefirst object of the displayed first image.

The detecting the first event may include detecting an object of thefirst image having a movement exceeding a threshold of the first image.

The detecting the first event may include detecting at least one of asound as the first event, motion information as the first event, and animage analysis result as the first event.

The method may further include: correcting a hidden area of theplurality of images; and playing the animation image for the firstobject using the plurality of corrected images.

The method may further include: obtaining a sound while obtaining theplurality of images; and outputting the obtained sound while playing theanimation image.

In accordance with aspects of various exemplary embodiments, there isprovided an electronic device including: electronic device, including: adisplay; a processor electrically connected to the display; and a memoryelectrically connected to the processor, wherein the memory stores aninstruction that, when executed by the processor, instructs theprocessor to: obtain a plurality of images, control the display todisplay a first image of the plurality of images, detect a first eventas a trigger to play an animation image for a first object of the firstimage, and control the display to play the animation image for the firstobject using the plurality of images.

The memory may further store an instruction that, when executed by theprocessor, instructs the processor to maintain the display of objectswithin the first image other than the first object.

The memory may further store an instruction that, when executed by theprocessor, instructs the processor to perform segmentation on the firstobject in each of the plurality of images.

The memory may further store an instruction that, when executed by theprocessor, instructs the processor to: obtain a respective depth map foreach of the plurality of images, and perform segmentation on the firstobject in each of the plurality of images based on the respective depthmaps.

The memory may further store an instruction that, when executed by theprocessor, instructs the processor to: obtain respective imageinformation for each of the plurality of images, and performsegmentation on the first object in each of the plurality of imagesbased on the respective the image information.

The memory may further store an instruction that, when executed by theprocessor, instructs the processor to detect the first event bydetecting at least one of a touch on an area corresponding to the firstobject of the displayed first image, and a user's view on the areacorresponding to the first object of the displayed first image.

The memory may further store an instruction that, when executed by theprocessor, instructs the processor to detect the first event bydetecting an object of the first image having a movement exceeding athreshold of the first image.

The memory may further store an instruction that, when executed by theprocessor, instructs the processor to detect the first event bydetecting at least one of a sound as the first event, motion informationas the first event, and an image analysis result as the first event.

The memory may further store an instruction that, when executed by theprocessor, instructs the processor to: correct a hidden area of theplurality of images, and control the display to play the image animationfor the first object using the plurality of corrected images.

The memory may further store an instruction that, when executed by theprocessor, instructs the processor to: obtain a sound while obtainingthe plurality of images, and output the obtained sound while playing theanimation image

In accordance with aspects of various exemplary embodiments, there isprovided a method of generating an animation image, the methodincluding: obtaining a plurality of images; generating the animationimage corresponding to a first object of a first image of the pluralityof images based on the plurality of images; obtaining a first event tobe a trigger to play the animation image; and storing the first event inassociation with the animation image.

The obtaining the first event may include obtaining the first eventusing at least one of the plurality of images.

The obtaining the first event may include obtaining the first eventbased on a detected input.

The method may further include: obtaining a sound; and storing theobtained sound in association with the animation image.

The method may further include: obtaining information for segmenting atleast one of the plurality of images; and storing the information forthe segmenting in association with the animation image

In accordance with aspects of various exemplary embodiments, there isprovided an electronic device including: a processor; and a memoryelectrically connected to the processor, wherein the memory stores aninstruction that, when executed by the processor, instructs theprocessor to: obtain a plurality of images, generate an animation imagecorresponding to a first object of a first image of the plurality ofimages based on the plurality of images, obtain a first event to be atrigger to play the animation image, and store the first event inassociation with the animation image.

The memory may further store an instruction that, when executed by theprocessor, instructs the processor to obtain the first event using atleast one of the plurality of images.

The memory may further store an instruction that, when executed by theprocessor, instructs the processor to obtain the first event based on adetected input.

The memory may further store an instruction that, when executed by theprocessor, instructs the processor to store a sound obtained from aroundthe electronic device in association with the animation image.

The memory may further store an instruction that, when executed by theprocessor, instructs the processor to: obtain information for segmentingat least one of the plurality of images, and store the information forthe segmenting in association with the animation image.

According to aspects of one or more exemplary embodiments, there isprovided an electronic device that plays an animation image for someobject of an image and a method for controlling the same. Further, theremay be provided an electronic device that plays an animation for anobject corresponding to a detected event, with an event set for each ofobjects of an animation image and a method for controlling the same.

According to aspects of one or more exemplary embodiments, there isprovided an electronic device including: a processor; and a memoryhaving stored thereon a program that, when executed by the processor,controls the processor to: obtain a plurality of images; detect a firstobject of a first image of the plurality of images; detect a change inthe first object between the first image and a second image of theplurality of images; and generate an animation image corresponding tothe first object based on the change in the first object between thefirst image and the second image, wherein the animation image isconfigured to be played by displaying objects of the first image otherthan the first object as still, and animating the change of the firstobject.

The program, when executed by the processor, may further control theprocessor to: detect an area in the first image occluded by the firstobject in the first image; correct the occluded area using the pluralityof images; and generate the animation image using the corrected occludedarea.

The program, when executed by the processor, may further control theprocessor to: detect an irregular camera movement among the plurality ofimages; correct the irregular camera movement; and generate theanimation image using the corrected irregular camera movement.

Other aspects, advantages, and salient features of one or more exemplaryembodiments will become apparent to those of ordinary skilled in the artfrom the following detailed description, which, taken in conjunctionwith the annexed drawings, discloses certain exemplary embodiments.

BRIEF DESCRIPTION OF THE DRAWINGS

A more complete appreciation of one or more exemplary embodiments andmany of the attendant aspects thereof will be readily obtained andbetter understood by reference to the following detailed descriptionconsidered in connection with the accompanying drawings, wherein:

FIG. 1 is a block diagram of an electronic device and a networkaccording to an exemplary embodiment;

FIG. 2 is a block diagram of an electronic device according to anexemplary embodiment;

FIG. 3 is a block diagram of a program module according to an exemplaryembodiment;

FIG. 4 is a flowchart illustrating a method of playing an animationaccording to an exemplary embodiment;

FIG. 5 is a flowchart illustrating a method of generating an animationimage according to an exemplary embodiment;

FIGS. 6A to 6F are views illustrating examples of generating and playinganimation images according to one or more exemplary embodiments;

FIG. 7A is a flowchart illustrating a method of generating an animationimage according to an exemplary embodiment;

FIG. 7B is a flowchart illustrating a method of playing an animationimage according to an exemplary embodiment;

FIGS. 8A and 8B are views illustrating examples of generating andplaying animation images according to one or more exemplary embodiments;

FIG. 9A is a flowchart illustrating a method of generating an animationimage according to an exemplary embodiment;

FIG. 9B is a flowchart illustrating a method of playing an animationimage according to an exemplary embodiment;

FIGS. 10A to 10G are views illustrating examples of generating andplaying animation images according to one or more exemplary embodiments;

FIG. 11A is a flowchart illustrating a method of generating an animationimage according to an exemplary embodiment;

FIG. 11B is a flowchart illustrating a method of playing an animationimage according to an exemplary embodiment;

FIGS. 12A to 12E are views illustrating examples of generating andplaying animation images according to one or more exemplary embodiments;

FIG. 13A is a flowchart illustrating a method of generating an animationimage according to an exemplary embodiment;

FIG. 13B is a flowchart illustrating a method of playing an animationimage according to an exemplary embodiment;

FIGS. 14A to 14E are views illustrating examples of generating andplaying animation images according to one or more exemplary embodiments;

FIG. 15 is a flowchart illustrating a method of generating an animationimage according to an exemplary embodiment;

FIGS. 16A and 16B are flowcharts illustrating methods for controlling anelectronic device according to one or more exemplary embodiments;

FIG. 17 is a view representing a data format of an animation imageaccording to an exemplary embodiment;

FIG. 18 is a view representing a file format of an animation imageaccording to an exemplary embodiment;

FIG. 19 is a flowchart illustrating an operation of an electronic deviceplaying an animation image according to an exemplary embodiment;

FIG. 20 is a block diagram of an electronic device configured togenerate and record an animation corresponding to a still imageaccording to an exemplary embodiment;

FIG. 21 is a block diagram of an electronic device configured to recordan animation corresponding to a still image according to an exemplaryembodiment;

FIG. 22 is a block diagram of an electronic device configured to play ananimation recorded in at least one object of a still image correspondingto an animation image according to an exemplary embodiment; and

FIG. 23 is a block diagram of an electronic device configured to play ananimation image according to an exemplary embodiment.

Throughout the drawings, like reference numerals will be understood torefer to like parts, components, and structures.

DETAILED DESCRIPTION

Hereinafter, certain exemplary embodiments will be described withreference to the accompanying drawings. However, it should beappreciated that one or more exemplary embodiments are not limited tothe certain exemplary embodiments described herein, and all changesand/or equivalents or replacements thereto also belong to the scope ofthe present disclosure. The same or similar reference denotations may beused to refer to the same or similar elements throughout thespecification and the drawings.

As used herein, the terms “have,” “may have,” “include,” or “mayinclude” a feature (e.g., a number, function, operation, or a componentsuch as a part) indicate the existence of the feature and do not excludethe existence of other features.

As used herein, the terms “A or B,” “at least one of A and/or B,” or“one or more of A and/or B” may include all possible combinations of Aand B. For example, “A or B,” “at least one of A and B,” “at least oneof A or B” may indicate all of (1) including at least one A, (2)including at least one B, or (3) including at least one A and at leastone B.

As used herein, the terms “first” and “second” may modify variouscomponents regardless of importance and/or order, and are used todistinguish one component from another without limiting the components.For example, a first user device and a second user device may indicatedifferent user devices, regardless of the order or importance of thedevices. For example, a first component may be referred to as a secondcomponent, and vice versa.

It will be understood that when an element (e.g., a first element) isreferred to as being (operatively or communicatively) “coupled with/to,”or “connected with/to” another element (e.g., a second element), it canbe coupled or connected with/to the other element directly or via athird element. In contrast, it will be understood that when an element(e.g., a first element) is referred to as being “directly coupledwith/to” or “directly connected with/to” another element (e.g., a secondelement), no other element (e.g., a third element) intervenes betweenthe element and the other element.

As used herein, the terms “configured (or set) to” may beinterchangeably used with the terms “suitable for,” “having the capacityto,” “designed to,” “adapted to,” “made to,” or “capable of” dependingon circumstances. The term “configured to” may mean that a device canperform an operation together with another device or parts. For example,the phrase “processor configured (or set) to perform A, B, and C” maymean a general-purpose processor (e.g., a central processing unit (CPU)or application processor) that may perform the operations by executingone or more software programs stored in a memory device or a dedicatedprocessor (e.g., an embedded processor) for performing the operations.

The terms as used herein are provided merely to describe certainexemplary embodiments, and, therefore, should not be construed aslimiting the scope of other exemplary embodiments. It is to beunderstood that the singular forms “a,” “an,” and “the” include pluralreferences unless the context clearly dictates otherwise. Technical andscientific terms used herein have the same meaning as commonlyunderstood by one of ordinary skill in the art to which the exemplaryembodiments belong unless otherwise indicated. It will be furtherunderstood that terms, such as those defined in commonly useddictionaries, should be interpreted as having a meaning that isconsistent with their meaning in the context of the relevant art andwill not be interpreted in an idealized or overly formal sense unlessexpressly so defined herein.

Non-limiting examples of the electronic device according to one or moreexemplary embodiments may include at least one of a smartphone, a tabletpersonal computer (PC), a mobile phone, a video phone, an e-book reader,a desktop PC, a laptop computer, a netbook computer, a workstation, apersonal digital assistant (PDA), a portable multimedia player (PMP), anMP3 player, a mobile medical device, a camera, or a wearable device.According to one or more exemplary embodiments, the wearable device mayinclude at least one of an accessory-type device (e.g., a watch, a ring,a bracelet, an anklet, a necklace, glasses, contact lenses, or ahead-mounted device (HMD)), a fabric- or clothes-integrated device(e.g., electronic clothes), a body attaching-type device (e.g., a skinpad or tattoo), or a body implantable device (e.g., an implantablecircuit).

According to one or more exemplary embodiments, the electronic devicemay be a home appliance. Non-limiting examples of a home appliance mayinclude at least one of a television (TV), a digital video disk (DVD)player, an audio player, a refrigerator, an air conditioner, a cleaner,an oven, a microwave oven, a washer, a drier, an air cleaner, a set-topbox, a home automation control panel, a security control panel, a TV box(e.g., Samsung HomeSync™, Apple TV™, or Google TV™), a gaming console(Xbox™, PlayStation™) an electronic dictionary, an electronic key, acamcorder, or an electronic picture frame.

According to an one or more exemplary embodiments, examples of theelectronic device may include at least one of various medical devices(e.g., diverse portable medical measuring devices (a blood sugarmeasuring device, a heartbeat measuring device, or a body temperaturemeasuring device), a magnetic resource angiography (MRA) device, amagnetic resource imaging (MRI) device, a computed tomography (CT)device, an imaging device, or an ultrasonic device), a navigationdevice, a global navigation satellite system (GNSS) receiver, an eventdata recorder (EDR), a flight data recorder (FDR), an automotiveinfotainment device, a sailing electronic device (e.g., a sailingnavigation device or a gyro compass), avionics, security devices,vehicular head units, industrial or home robots, automatic tellermachines (ATMs), point of sale (POS) devices, or Internet of Thingsdevices (e.g., a bulb, various sensors, an electric or gas meter, asprinkler, a fire alarm, a thermostat, a street light, a toaster,fitness equipment, a hot water tank, a heater, or a boiler).

According to various exemplary embodiments, examples of the electronicdevice may include at least one of furniture, part of abuilding/structure, an electronic board, an electronic signaturereceiving device, a projector, or various measurement devices (e.g.,devices for measuring water, electricity, gas, or electromagneticwaves). According to one or more exemplary embodiments, the electronicdevice may be one or a combination of the above-listed devices.According to one or more exemplary embodiments, the electronic devicemay be a flexible electronic device. The electronic device disclosedherein is not limited to the above-listed devices, and may include otherelectronic devices including new electronic devices developed throughtechnological advancement.

Hereinafter, electronic devices are described with reference to theaccompanying drawings, according to various exemplary embodiments. Asused herein, the term “user” may denote a human or another device (e.g.,an artificial intelligent electronic device) using the electronicdevice.

Referring to FIG. 1, according to an exemplary embodiment, an electronicdevice 101 is included in a network environment 100. The electronicdevice 101 may include a bus 110, a processor 120, a memory 130, aninput/output interface 150, a display 160, and a communication interface170, e.g., a communicator or a communication module. In some exemplaryembodiments, the electronic device 101 may exclude one or more of theabove components, or may include additional component.

The bus 110 may include a circuit for connecting the components 110 to170 with one another and transferring communications (e.g., controlmessages and/or data) between the components 120-170.

The processing module 120 may include one or more of a centralprocessing unit (CPU), an application processor (AP), or a communicationprocessor (CP). The processor 120 may perform control on at least one ofthe other components of the electronic device 101, and/or perform anoperation or data processing relating to communication.

The memory 130 may include a volatile and/or non-volatile memory. Forexample, the memory 130 may store commands or data related to at leastone other component of the electronic device 101. According to anexemplary embodiment, the memory 130 may store software and/or a program140. The program 140 may include, e.g., a kernel 141, middleware 143, anapplication programming interface (API) 145, and/or an application (or“application program”) 147. At least a portion of the kernel 141,middleware 143, or API 145 may be denoted as an operating system (OS).

For example, the kernel 141 may control or manage system resources(e.g., the bus 110, processor 120, or memory 130) used to performoperations or functions implemented in other programs (e.g., themiddleware 143, API 145, or application 147). The kernel 141 may providean interface that allows the middleware 143, the API 145, or theapplication 147 to access the individual components of the electronicdevice 101 to control or manage the system resources.

The middleware 143 may function as a relay to allow the API 145 or theapplication 147 to communicate data with the kernel 141.

Further, the middleware 143 may process one or more task requestsreceived from the application 147 in order of priority. For example, themiddleware 143 may assign priority to at least one of the applications147 to use system resources (e.g., the bus 110, processor 120, or memory130) of at least one electronic device 101. For example, the middleware143 may perform scheduling or load balancing on the one or more taskrequests by processing the one or more task requests according to thepriority assigned to the at least one application 147.

The API 145 is an interface allowing the application 147 to controlfunctions provided from the kernel 141 or the middleware 143. Forexample, the API 133 may include at least one interface or function(e.g., a command) for filing control, window control, image processingor text control.

The input/output interface 150 may serve as an interface that may, forexample, transfer commands or data input from a user or other externaldevices to other component(s) of the electronic device 101. Further, theinput/output interface 150 may output commands or data received from oneor more other components of the electronic device 101 to the user or theother external device.

The display 160 may include, e.g., a liquid crystal display (LCD), alight emitting diode (LED) display, an organic light emitting diode(OLED) display, a microelectromechanical systems (MEMS) display, or anelectronic paper display. The display 160 may display, e.g., variouscontents (e.g., text, images, videos, icons, or symbols). The display160 may include a touchscreen and may receive, e.g., a touch, gesture,proximity or hovering input using an electronic pen or a body portion ofthe user.

The communication interface 170 may set up communication between theelectronic device 101 and an external device (e.g., a first electronicdevice 102, a second electronic device 104, or a server 106). Forexample, the communication interface 170 may be connected with thenetwork 162, through wireless or wired communication, to communicatewith the external electronic device (e.g., the second externalelectronic device 104 or server 106).

The wireless communication may be a cellular communication protocol andmay use at least one of Long-Term Evolution (LTE), LTE-Advanced (LTE-A),Code Division Multiple Access (CDMA), Wideband CDMA (WCDMA), UniversalMobile Telecommunications System (UMTS), Wireless Broadband (WiBro), orGlobal System for Mobile Communications (GSM). Further, the wirelesscommunication may include short-range communication 164. The short-rangecommunication 164 may include at least one of Wireless Fidelity (Wi-Fi),Bluetooth, Near-Field Communication (NFC), or Global NavigationSatellite System (GNSS). The GNSS may include at least one of GlobalPositioning System (GPS), Global Navigation Satellite System (Glonass),Beidou Navigation Satellite System (hereinafter, “Beidou”), Galileo, orthe European global satellite-based navigation system. Hereinafter, theterms “GPS” and the “GNSS” may be interchangeably used herein. The wiredconnection may include at least one of Universal Serial Bus (USB), HighDefinition Multimedia Interface (HDMI), Recommended Standard (RS)-232,or Plain Old Telephone Service (POTS). The network 162 may include atleast one of telecommunication networks, e.g., a computer network (e.g.,LAN or WAN), Internet, or a telephone network.

The first and second external electronic devices 102 and 104 each may bea device of the same or a different type from the electronic device 101.The server 106 may include a group of one or more servers. All or someof operations executed on the electronic device 101 may be executed onanother or multiple other electronic devices (e.g., the electronicdevices 102 and 104 or server 106). According to an exemplaryembodiment, when the electronic device 101 should perform some functionor service, the electronic device 101, instead of executing the functionor service, may request another device (e.g., electronic devices 102 and104 or server 106) perform at least some functions associated therewith.The other electronic device (e.g., electronic devices 102 and 104 orserver 106) may execute the requested functions or additional functionsand transfer a result of the execution to the electronic device 101. Theelectronic device 101 may provide a requested function or service byproviding the received result, or further processing the receivedresult. To that end, a cloud computing, distributed computing, orclient-server computing technique may be used, as non-limiting examples.

According to an exemplary embodiment, the processor 120 may beelectrically connected to the display 160. Further, the processor 120may be electrically connected to the memory 130. The memory 130 maystore instructions executed to enable the processor 120 to obtain aplurality of images, to display a first image of the plurality of imageson the display 160, and to detect a first event configured to start toplay an animation image on a first object of the first image, and tocontrol the display 160 to play an animation on the first object usingthe plurality of images.

According to an exemplary embodiment, the memory 130 may store aninstruction that, when executed, controls the processor 120 to maintainthe display of other objects than the first object in the first image.

According to an exemplary embodiment, the memory 130 may store aninstruction that, when executed, enables the processor 120 to segmentthe first object in each of the plurality of images.

According to an exemplary embodiment, the memory 130 may store aninstruction that, when executed, enables the processor 120 to obtain adepth map for each of the plurality of images and to segment the firstobject in each of the plurality of images based on the depth map foreach of the plurality of images.

According to an exemplary embodiment, the memory 130 may store aninstruction that, when executed, enables the processor 120 to obtainimage information for each of the plurality of images and to segment thefirst object in each of the plurality of images based on the imageinformation for each of the plurality of images.

According to an exemplary embodiment, the memory 130 may store aninstruction that, when executed, enables the processor 120 to detect atouch on an area corresponding to the first object of the displayedanimation image or to detect a user's view for the area corresponding tothe first object of the displayed animation image.

According to an exemplary embodiment, the memory 130 may store aninstruction that, when executed, enables the processor 120 to detect anobject having a motion exceeding a threshold of the first image.

According to an exemplary embodiment, the memory 130 may store aninstruction that, when executed, enables the processor 120 to detect atleast one of a sound set to the first event, a motion information set tothe first event, and an image analysis result set to the first event.

According to an exemplary embodiment, the memory 130 may store aninstruction that, when executed, enables the processor 120 to correct ahidden area of the plurality of images and to control the display 160 toplay the animation for the first object using the plurality of correctedimages.

According to an exemplary embodiment, the memory 130 may store aninstruction that, when executed, enables the processor 120 to obtain asound while obtaining a plurality of images and to output the obtainedsound while the animation for the first object is played.

According to an exemplary embodiment, the memory 130 may storeinstructions that, when executed, enables the processor 120 to obtain aplurality of images, to generate an animation image corresponding to afirst object of a first image of the plurality of images based on theplurality of images, to obtain a first event for playing an animationimage corresponding to the first object, and to store the first event inassociation with the animation image.

According to an exemplary embodiment, the memory 130 may store aninstruction that, when executed, enables the processor 120 to obtain thefirst event using at least one of the plurality of images.

According to an exemplary embodiment, the memory 130 may store aninstruction that, when executed, enables the processor 120 to obtain thefirst event based on a detected input.

The memory 130 may store an instruction that, when executed, enables theprocessor 120 to store a sound obtained from around the electronicdevice in association with the animation image.

The memory 130 may store an instruction that, when executed, enables theprocessor 120 to obtain information for segmenting at least one of theplurality of images and to store the information for the segmentation inassociation with the animation image.

FIG. 2 is a block diagram of an electronic device 201 according to anexemplary embodiment. The electronic device 201 may include the whole orpart of the configuration of the electronic device 101 shown in FIG. 1.The electronic device 201 may include one or more processors 210 (e.g.,application processors (APs)) 210, a communication module 220, asubscriber identification module (SIM) 224, a memory 230, a sensormodule 240, an input device 250, e.g., an input unit or an input module,a display 260, an interface 270, an audio module 280, a camera module291, a power management module 295, a battery 296, an indicator 297, anda motor 298.

The processor 210 may control multiple hardware and software componentsconnected to the processor 210 by running, for example, an operatingsystem or application programs, and the processor 210 may process andcompute various data. The processor 210 may be implemented in a Systemon Chip (SoC). According to an exemplary embodiment, the processor 210may further include a graphic processing unit (GPU) and/or an imagesignal processor. The processor 210 may include at least some (e.g., thecellular module 221) of the components shown in FIG. 2. The processor210 may load a command or data received from at least one of othercomponents (e.g., a non-volatile memory) on a volatile memory, processthe command or data, and store various data in the non-volatile memory.

The communication module 220 may have the same or similar configurationto the communication interface 170 of FIG. 1. The communication module220 may include, for example, a cellular module 221, a Wi-Fi module 223,a Bluetooth module 225, a GNSS module 227 (e.g., a GPS module, a Glonassmodule, a Beidou module, or a Galileo module), an NFC module 228, and aradio frequency (RF) module 229.

The cellular module 221 may provide voice call, video call, text, orInternet services through a communication network. The cellular module221 may perform identification or authentication on the electronicdevice 201 in the communication network using the SIM 224 (e.g., a SIMcard). According to an exemplary embodiment, the cellular module 221 mayperform at least some of the functions of the processor 210. Accordingto an exemplary embodiment, the cellular module 221 may include acommunication processor (CP).

The Wi-Fi module 223, the Bluetooth module 225, the GNSS module 227, orthe NFC module 228 may include a process for processing datacommunicated through the module. Two or more of the cellular module 221,the Wi-Fi module 223, the Bluetooth module 225, the GNSS module 227, orthe NFC module 228 may be included in a single integrated circuit (IC)or an IC package.

The RF module 229 may transmit and receive data, e.g., communicationsignals or RF signals. The RF module 229 may include, for example, atransceiver, a power amp module (PAM), a frequency filter, an LNA (lownoise amplifier), or an antenna. According to an exemplary embodiment,at least one of the cellular module 221, the Wi-Fi module 223, theBluetooth module 225, the GNSS module 227, and the NFC module 228 maycommunicate RF signals through a separate RF module.

The SIM 224 may include a card including a subscriber identificationmodule and/or an embedded SIM, and may contain unique identificationinformation (e.g., an integrated circuit card identifier (ICCID) orsubscriber information (e.g., an international mobile subscriberidentity (IMSI)).

The memory 230 may include an internal memory 232 or an external memory234. The internal memory 232 may include at least one of a volatilememory (e.g., a dynamic RAM (DRAM), a static RAM (SRAM), a synchronousdynamic RAM (SDRAM), etc.) or a non-volatile memory (e.g., a one timeprogrammable ROM (OTPROM), a programmable ROM (PROM), an erasable andprogrammable ROM (EPROM), an electrically erasable and programmable ROM(EEPROM), a mask ROM, a flash ROM, a flash memory (e.g., a NAND flash,or a NOR flash), a hard drive, or a solid state drive (SSD).

The external memory 234 may include a flash drive, e.g., a compact flash(CF) memory, a secure digital (SD) memory, a micro-SD memory, a min-SDmemory, an extreme digital (xD) memory, a multi-media card (MMC), or amemory stick™. The external memory 234 may be functionally and/orphysically connected with the electronic device 201 via variousinterfaces.

The sensor module 240 may measure a physical quantity or detect anoperational state of the electronic device 201, and the sensor module240 may convert the measured quantity or detected information into anelectrical signal. The sensor module 240 may include at least one of agesture sensor 240A, a gyro sensor 240B, an atmospheric pressure sensor240C, a magnetic sensor 240D, an acceleration sensor 240E, a grip sensor240F, a proximity sensor 240G, a color sensor 240H, e.g., anRed-Green-Blue (RGB) sensor, a biometric sensor 240I, atemperature/humidity sensor 240J, an illumination sensor 240K, and anUltra Violet (UV) sensor 240L. Additionally or alternatively, thesensing module 240 may include an E-nose sensor, an electromyography(EMG) sensor, an electroencephalogram (EEG) sensor, an electrocardiogram(ECG) sensor, an infrared (IR) sensor, an iris sensor, or a finger printsensor. The sensor module 240 may further include a control circuit forcontrolling one or more of the sensors included in the sensing module.According to an exemplary embodiment, the electronic device 201 mayfurther include a processor configured to control the sensor module 240as part of the processor 210 or separately from the processor 210, andthe electronic device 201 may control the sensor module 240 while theprocessor 210 is in a sleep mode.

The input device 250 may include a touch panel 252, a (digital) pensensor 254, a key 256, or an ultrasonic input device 258. The touchpanel 252 may use at least one of capacitive, resistive, infrared, orultrasonic methods. The touch panel 252 may include a control circuit.The touch panel 252 may further include a tactile layer and may providea user with a tactile reaction.

The (digital) pen sensor 254 may include a part of a touch panel or aseparate sheet for recognition. The key 256 may include a physicalbutton, an optical key, or a key pad. The ultrasonic input device 258may sense an ultrasonic wave generated from an input tool through amicrophone (e.g., the microphone 288) to identify data corresponding tothe sensed ultrasonic wave.

The display 260 may include a panel 262, a hologram device 264, or aprojector 266. The panel 262 may have the same or similar configurationto the display 160 of FIG. 1. The panel 262 may be implemented to beflexible, transparent, or wearable. The panel 262 may also beincorporated with the touch panel 252 in a module. The hologram device264 may make three dimensional (3D) images (holograms) in the air byusing light interference. The projector 266 may display an image byprojecting light onto a screen. The screen may be located inside oroutside of the electronic device 201. In accordance with an embodiment,the display 260 may further include a control circuit to control thepanel 262, the hologram device 264, or the projector 266.

The interface 270 may include a High Definition Multimedia Interface(HDMI) interface 272, a USB interface 274, an optical interface 276, ora D-subminiature (D-sub) interface 278. The interface 270 may beincluded in the communication interface 170 shown in FIG. 1.Additionally or alternatively, the interface 270 may include a MobileHigh-definition Link (MHL) interface, a secure digital (SD) card/multimedia card (MMC) interface, or an IrDA standard interface.

The audio module 280 may convert a sound into an electric signal or viceversa. At least a part of the audio module 280 may be included in theinput/output interface 150 shown in FIG. 1. The audio module 280 mayprocess sound information input or output through a speaker 282, areceiver 284, an earphone 286, or a microphone 288.

The camera module 291 may be a device for capturing still images andvideos, and may include one or more image sensors (e.g., front and backsensors), a lens, an Image Signal Processor (ISP), or a flash such as anLED or xenon lamp.

The power manager module 295 may manage power of the electronic device201. According to an exemplary embodiment, the power manager module 295may include a power management Integrated circuit (PMIC), a charger IC,or a battery or fuel gauge. The PMIC may have a wired and/or wirelessrecharging scheme. The wireless charging scheme may include, forexample, a magnetic resonance scheme, a magnetic induction scheme, or anelectromagnetic wave based scheme, and an additional circuit, such as acoil loop, a resonance circuit, a rectifier, or the like may be addedfor wireless charging. The battery gauge may measure an amount ofremaining power of the battery 296, and a voltage, a current, or atemperature while the battery 296 is being charged. The battery 296 mayinclude, for example, a rechargeable battery or a solar battery.

The indicator 297 may indicate a particular state of the electronicdevice 201 or a part (e.g., the processor 210) of the electronic device,such as, as non-limiting examples, a booting state, a message state, ora recharging state. The motor 298 may convert an electric signal to amechanical vibration and may generate a vibrational or haptic effect.

A processing unit for supporting mobile TV, such as a GPU, may beincluded in the electronic device 201. The processing unit forsupporting mobile TV may process media data conforming to a standard forDigital Multimedia Broadcasting (DMB), Digital Video Broadcasting (DVB),or mediaFlo™.

Each of the aforementioned components of the electronic device mayinclude one or more parts, and a name of the part is not limiting. Theelectronic device in accordance with various exemplary embodiments mayinclude at least one of the aforementioned components, may omit some ofthe aforementioned components, and may include additional components.Some of the components may be combined into a single entity, and theentity may perform the same functions as the individual components.

FIG. 3 is a block diagram of a program module according to an exemplaryembodiment. The program module 310, e.g., a program such as program 140,may include an operating system (OS) controlling resources related tothe electronic device (e.g., the electronic device 101) and/or variousapplications (e.g., the application processor 147) driven by theoperating system. The operating system may include, for example,Android, iOS, Windows, Symbian, Tizen, or Bada.

The program module 310 may include a kernel 320, middleware 330, anapplication programming interface (API) 360, and/or an application 370.At least a part of the program module 310 may be preloaded on theelectronic device or may be downloaded from an external electronicdevice (e.g., the electronic devices 102 and 104 or server 106).

The kernel 320 may include a system resource manager 321 and/or a devicedriver 323. The system resource manager 321 may perform control,allocation, or recovery of system resources. According to an exemplaryembodiment, the system resource manager 321 may include a processmanaging unit, a memory managing unit, or a file system managing unit.The device driver 323 may include, for example, a display driver, acamera driver, a Bluetooth driver, a shared memory driver, a USB driver,a keypad driver, a Wi-Fi driver, an audio driver, or an inter-processcommunication (IPC) driver.

The middleware 330 may provide various functions to the application 370through the API 360 so that the application 370 may efficiently uselimited system resources in the electronic device or provide functionsjointly required by applications 370. According to an exemplaryembodiment, the middleware 330 may include at least one of a runtimelibrary 335, an application manager 341, a window manager 342, amultimedia manager 343, a resource manager 344, a power manager 345, adatabase manager 346, a package manager 347, a connectivity manager 348,a notification manager 349, a location manager 350, a graphic manager351, or a security manager 352.

The runtime library 335 may include a library module used by a compilerin order to add a new function through a programming language while theapplication 370 is being executed. The runtime library 335 may performinput/output management, memory management, or operations on arithmeticfunctions.

The application manager 341 may manage the life cycle of at least oneapplication of the applications 370. The window manager 342 may manageGUI resources used on the screen. The multimedia manager 343 may graspformats necessary to play various media files and use a codecappropriate for a format to perform encoding or decoding on media files.The resource manager 344 may manage resources, such as source code of atleast one of the applications 370, memory, or storage space.

The power manager 345 may operate together with a basic input/outputsystem (BIOS) to manage battery or power and to provide powerinformation necessary for operating the electronic device. The databasemanager 346 may generate, search, or vary a database to be used in atleast one of the applications 370. The package manager 347 may manageinstallation or update of an application that is distributed in the formof a package file.

The connectivity manager 348 may manage wireless connectivity, such asWi-Fi or Bluetooth. The notification manager 349 may display an event oran event notification, such as an incoming message, appointment, orproximity notification, without interfering with the user. The locationmanager 350 may manage locational information on the electronic device.The graphic manager 351 may manage graphic effects to be offered to theuser and their related user interface. The security manager 352 mayprovide various security functions necessary for system security or userauthentication. According to an exemplary embodiment, when theelectronic device (e.g., the electronic device 101) has telephonycapability, the middleware 330 may further include a telephony managerfor managing voice call or video call functions of the electronicdevice.

The middleware 330 may include a middleware module forming a combinationof various functions of the above-described components. The middleware330 may provide a specified module per type of the operating system inorder to provide a differentiated function. Further, the middleware 330may dynamically omit some existing components or add new components.

The API 360, e.g., the API 145, may be a set of API programmingfunctions and may have different configurations depending on operatingsystems. For example, in the case of Android or iOS, one API set may beprovided per platform, and in the case of Tizen, two or more API setsmay be offered per platform.

The application 370 (e.g., the application processor 147) may includeone or more applications that may provide functions such as a homeapplication 371, a dialer application 372, an SMS/MMS application 273,an instant message (IM) application 374, a browser application 375, acamera application 376, an alarm application 377, a contact application378, a voice dial application 379, an email application 380, a calendarapplication 381, a media player application 382, an album application383, a clock application 384, a health-care application (e.g.,configured to measure a degree of a workout or blood sugar), or anapplication for provision of environmental information (e.g., provisionof air pressure, moisture, or temperature information).

According to an exemplary embodiment, the application 370 may include anapplication (hereinafter, “information exchanging application” forconvenience) supporting information exchange between the electronicdevice (e.g., the electronic device 101) and an external electronicdevice (e.g., the electronic devices 102 and 104). Examples of theinformation exchange application may include, but is not limited to, anotification relay application for transferring specific information tothe external electronic device, or a device management application formanaging the external electronic device.

For example, the notification relay application may include a functionfor relaying notification information generated from other applicationsof the electronic device (e.g., the SMS/MMS application, the emailapplication, the health-care application, or the environmentalinformation application) to the external electronic device (e.g., theelectronic devices 102 and 104). Further, the notification relayapplication may receive notification information from the externalelectronic device and may provide the received notification informationto the user.

The device management application may perform at least some functions ofthe external electronic device (e.g., the electronic device 102 or 104)communicating with the electronic device (for example, turning on/offthe external electronic device (or some components of the externalelectronic device) or control of brightness (or resolution) of thedisplay), and the device management application may manage (e.g.,install, delete, or update) an application operating in the externalelectronic device or a service (e.g., call service or message service)provided from the external electronic device.

According to an exemplary embodiment, the application 370 may include anapplication (e.g., a healthcare application of a mobile medical device)designated according to an attribute of the external electronic device(e.g., the electronic devices 102 and 104). According to an exemplaryembodiment, the application 370 may include an application received fromthe external electronic device (e.g., the server 106 or electronicdevices 102 and 104). According to an exemplary embodiment, theapplication 370 may include a preloaded application or a third partyapplication downloadable from a server. The names of the components ofthe program module 310 according to the shown embodiment may be varieddepending on the type of operating system.

According to an exemplary embodiment, at least a part of the programmodule 310 may be implemented in software, firmware, hardware, or in acombination of two or more thereof. At least a part of the programmingmodule 310 may be implemented (e.g., executed) by a processor (e.g., theprocessor 210). At least a part of the program module 310 may include amodule, program, routine, set of instructions, process, or the like forperforming one or more functions.

The term ‘module’ may refer to a unit including hardware, software,firmware, or a combination thereof. The term ‘module’ may beinterchangeably used with a unit, logic, logical block, component, orcircuit. The module may be a minimum unit or part of an integratedcomponent. The module may be a minimum unit or part of performing one ormore functions. The module may be implemented mechanically orelectronically. For example, the module may include at least one ofApplication Specific Integrated Circuit (ASIC) chips, Field ProgrammableGate Arrays (FPGAs), or Programmable Logic Arrays (PLAs) that performsome operations, which are already known or will be developed in thefuture.

According to an exemplary embodiment, at least a part of the device(e.g., modules or their functions) or method (e.g., operations) may beimplemented as instructions stored in a computer-readable storage mediumin the form of a program module. The instructions, when executed by aprocessor (e.g., the processor 120), may enable the processor to carryout a corresponding function. The memory 130 may be a computer-readablestorage medium.

The computer-readable storage medium may include a hardware device, suchas hard discs, floppy discs, and magnetic tapes, optical media such asCompact Disc ROMs (CD-ROMs) and Digital Versatile Discs (DVDs),magneto-optical media such as floptical disks, ROMs, RAMs, FlashMemories, or the like. Examples of the program instructions may includenot only machine language codes but also high-level language codes whichare executable by various computing means using an interpreter. Theaforementioned hardware devices may be configured to operate as one ormore software modules to carry out various exemplary embodiments, andvice versa.

Modules or programming modules in accordance with various exemplaryembodiments may include at least one or more of the aforementionedcomponents, omit some of them, or further include other additionalcomponents. Operations performed by modules, programming modules orother components in accordance with various exemplary embodiments may becarried out sequentially, simultaneously, repeatedly, or heuristically.Furthermore, some of the operations may be performed in a differentorder, or omitted, or additional operation(s) may be included. Theexemplary embodiments disclosed herein are presented for description andto provide a greater understanding of one or more exemplary embodiments,and do not limit the scope of the present disclosure. Accordingly, thescope of the present disclosure should be interpreted as including allchanges, equivalents, and various exemplary embodiments based on thetechnical spirit of the present disclosure.

FIG. 4 is a flowchart illustrating a method of playing an animationaccording to an exemplary embodiment. The method may be executed by theelectronic device 101, and the electronic device may be controlled toexecute the method.

In operation 401, the electronic device 101 may obtain a plurality ofimages. The electronic device 101 may obtain the plurality of imagesthrough a camera module included in the electronic device 101.Specifically, the electronic device 101 may capture images at apredetermined period. The predetermined period may be previously set toenable an animation to be naturally played. Alternatively, theelectronic device 101 may obtain the plurality of images captured overtime from another electronic device. For example, the electronic device101 may obtain a plurality of images from another electronic devicethrough a communication module included in the electronic device 101.According to an exemplary embodiment, the electronic device 101 maystabilize each of the obtained images. The electronic device 101 mayregister at least one of the plurality of images in a first frame tocorrect an alignment of objects. The electronic device 101 may correctan irregular camera movement that occurs due to, for example, ahandshake, based on a stabilization algorithm. The stabilizationalgorithm may include optical image stabilization, software-baseddigital image stabilization, or a combination of the optical imagestabilization and the software-based digital image stabilization.According to an exemplary embodiment, conversion from a previous frameto a current frame is identified by a function detection andLucas-Kanade light flow for a plurality or all of the frames. Theconversion may be performed based on three parameters including, but notlimited to, a dx (movement in an x direction), a dy (movement in a ydirection), and a da (angle). The conversion parameters may beaccumulated to obtain the trajectory of x, y, and angle in each frame.The trajectory may be smoothed using a Kalman filter. Further, themodified conversion parameters may apply to the frames, stabilizing theimages. When the plurality of images are stabilized, the plurality ofimages, i.e., each frame, may be registered. While the frames areregistered, conversion parameters for all of the frames may be detectedusing a feature extraction and light flow. The sequence of frames isthen warped back to first frame using composition of identifiedtransformation parameters. Similarly, the depth map may also beregistered in the first frame of the sequence of frames to correct analignment error.

In operation 403, the electronic device 101 may display a first image ofthe plurality of images. Here, the first image may be an image firstdisplayed. For example, the first image may be the first image of theplurality of images, but is not limited thereto. An animation imagecorresponding to the first image may be an animation in which the firstimage is first displayed and then other images are sequentiallydisplayed. Accordingly, the first image may be denoted as a still image.

In operation 405, the electronic device 101 may detect a first event setto start to play an animation image of a first object of the firstimage. For example, the electronic device 101 may detect a user's viewfor the first object or a touch input on the first object. Or, theelectronic device 101 may detect the first event based on a result of ananalysis of at least one of motion information of an obtained previewimage, motion information of the electronic device 101, and obtainedsound information. Here, the first event may be, as non-limitingexamples, to designate a particular object of the first image, i.e., thestill image, to input a particular sound, or to apply a particularmovement to the electronic device. It should be appreciated by one ofordinary skill in the art that the event is not limited thereto as longas the event may be detected by the electronic device. The electronicdevice 101 may obtain the first event based on an input from theoutside. For example, the electronic device 101 may obtain the firstevent by displaying a graphic user interface to derive the input of thefirst event after generating the animation image. Or, the electronicdevice 101 may analyze the animation image and obtain the first eventbased on a result of the analysis. For example, the electronic device101 may determine whether a facial object of the animation image is asmiling animation by analyzing the animation image. The electronicdevice 101 may set a smiling look of the animation image viewer to becaptured as the first event that is a condition to play the animationimage corresponding to the facial object. Or, the electronic device 101may perform mere detection of an object whose movement exceeds apredetermined threshold of the animation image as detection of the firstevent. That is, the electronic device 101, upon reception of a requestfor playing the animation image, may play the animation image only forthe object whose movement exceeds the threshold.

The electronic device 101, when detecting a user's designation, performsobject segmentation to determine which object has been designated. Thesegmentation process is described below in further detail.

In operation 407, the electronic device 101 may play the animation forthe first object corresponding to the designation of the first event.The electronic device 101 may maintain the display of the first imagefor the remaining area except the first object. Accordingly, theelectronic device 101 may play the animation image so that only someobjects of the still image may be animated. The electronic device 101may obtain a target object from each of the plurality of images bysegmenting each of the plurality of images. The electronic device 101may play the animation image for a particular object by displaying thetarget objects for play of the animation image while sequentiallychanging the target objects to the objects in each of the plurality ofimages. According to an exemplary embodiment, the electronic device 101may play the animation image for the particular object by tracking thetarget object in other images while replacing the target object with thetracked area and displaying the same.

According to an exemplary embodiment, the electronic device 101 may setan event for each object of the still image. For example, the stillimage may include a first object and a second object. The electronicdevice 101 may obtain a first event to start an animation of the firstobject and a second event to start an animation of the second object.Here, the first event may differ from the second event. Accordingly, theelectronic device playing an animation message may play the animation ofthe first object when detecting the first event. In this case, theobjects of the still image other than the first object may remaindisplayed without change. In other words, the electronic device may playonly the animation of the first object corresponding to the detection ofthe first event. Meanwhile, when the second event is detected, theplaying electronic device may play only the animation of the secondobject.

The electronic device 101 may store the first event in association withthe object of the animation image. For example, the electronic device101 may include information on the first event in metadata of theanimation image. Or, the electronic device 101 may store the animationimage, with the animation image mapped to the first event. Theinformation on the first event may contain information on hardware thatmay detect an event and content detected by the hardware.

According to an exemplary embodiment, the electronic device 101 maydisplay an animation effect in which the animation image for thedesignated object is played while the remaining area remains constant.Further, the electronic device 101 may set an event that is a conditionfor starting to play each animation. Upon detection of a particularevent, the electronic device 101 may play an animation image of anobject corresponding to the detected event.

FIG. 5 is a flowchart illustrating a method of generating an animationimage according to an exemplary embodiment. The method may be executedthe electronic device 101, and the electronic device may be controlledto execute the method.

In operation 501, the electronic device 101 may obtain a plurality ofimages. For example, the electronic device 101 may obtain a first imageincluding a first object and a second image including a second object.

In operation 503, the electronic device 101 may generate an animationimage corresponding to each of at least one object of a first image ofthe plurality of images. For example, the electronic device 101 maysegment each of the plurality of images to identify the first object andthe second object from each of the plurality of images. Further, theelectronic device 101 may generate an animation image for the firstobject and an animation image for the second object. The electronicdevice 101 may perform segmentation using image information such as adepth map or a color value.

In operation 505, the electronic device 101 may obtain an event forstarting to play the animation image per object. The electronic device101 may obtain an event through image analysis, through detectedinformation, or through an external input. For example, the electronicdevice 101 may obtain per-object event information as shown in Table 1.

TABLE 1 Event First object Hardware information: Camera module Contentof event: Detection of smiling face, Second object Hardware information:Acceleration sensor Content of event: Right movement of electronicdevice

As shown in Table 1, the event information may include at least one ofhardware information and content of event.

Meanwhile, the electronic device 101 may set a plurality of events forone object. For example, as shown in Table 1, the electronic device 101may designate the content of event as a smiling face for the firstobject while additionally setting a designation for the first object asan event.

In operation 507, the electronic device 101 may store events to beplayed respectively in association with the objects. The electronicdevice 101 may subsequently detect an event using the stored informationand may play an animation image for the object corresponding to thedetected event. Or, the electronic device 101 may transmit the storedinformation to another electronic device, and the other electronicdevice may detect an event using the stored information and play ananimation image for the object corresponding to the detected event.

For example, the electronic device 101 may obtain a preview imagethrough a camera module and analyze the preview image to detect a user'ssmiling face. The electronic device 101 may play an animation for thefirst object corresponding to the detection of the smiling face and maymaintain the display of the second object in the still image. Theelectronic device 101 may detect a movement of the electronic device 101through an acceleration sensor, and the electronic device 101 may detectmotion information in a right direction. The electronic device 101 mayplay an animation for the second object corresponding to the detectionof the movement in the right direction and may maintain the display ofthe first object in the still image.

FIGS. 6A to 6F are views illustrating examples of generating and playinganimation images according to one or more exemplary embodiments.

Referring to FIGS. 6A and 6B, the electronic device 101 may obtain afirst image and a second image. For example, even when the useractivates a capturing button of the electronic device 101 once, theelectronic device 101 may capture and obtain a plurality of imagesduring a predetermined period. The electronic device 101 may capture animage of an object 600 of an expressionless face at a first view asshown in FIG. 6A to obtain a first image 610 and may capture an image ofan object 600 of a smiling face at a second view as shown in FIG. 6B toobtain a second image 620. The electronic device 101 may include acamera module that may capture an image of an object 600. Or, theelectronic device 100 may receive the first image 610 and the secondimage 620 through a communication module from another electronic device.The first image 610 may be a portrait picture of an expressionless face,and the second image 620 may be a portrait picture of a smiling face.The first image 610 may include a face object 611 and a backgroundobject 612. The second image 620 may include a face object 621 and abackground object 622.

The above-described FIGS. 6A and 6B correspond to capturing images, andFIGS. 6C and 6D, described below, correspond to displaying images. Theelectronic device 101 may first display the first image 610, i.e., thestill image as shown in FIG. 6C. The user may designate the face object611 of the first image 610. The electronic device 101 may play ananimation image for some object by changing the face object 611corresponding to the user's designation to the face object 621 in thesecond image 620 to display the same. Although the electronic device 101displays two images to play the animation image for the face object,this is merely for ease of description. The electronic device 101 maydisplay the animation image by sequentially changing and displaying aplurality of images in the facial area (FIG. 6C). Meanwhile, theelectronic device 101 may maintain the display of the background object612 from which no designation is detected.

The electronic device 101 may first display the first image 610, i.e.,the still image as shown in FIG. 6D. The user may designate thebackground object 612 of the first image 610. The electronic device 101may play an animation image for some object by changing the backgroundobject 611 corresponding to the user's designation to the backgroundobject 622 in the second image 620 to display the same. Meanwhile, theelectronic device 101 may maintain the display of the face object 611from which no designation is detected.

The electronic device 101 may store the obtained first event inassociation with the generated animation image. For example, theelectronic device 101 may store information on the first event inmetadata of the animation image. Or, the electronic device 101 may storeinformation on the first event, with the information mapped to theanimation image. Subsequently, the electronic device 101 may capture apreview image and may detect the first event by detecting the user'ssmiling face. The electronic device 101 may play the animation image forthe face object corresponding to the same.

FIG. 6E is a view illustrating an animation image 650 according to anexemplary embodiment. The animation image 650 may be an animation inwhich a background object 651 is moved. The user may designate (652) thebackground object 651, and the electronic device 101 may play ananimation image in which a waterfall, the background object 651, flowsdown.

FIG. 6F is a view illustrating an animation image 650 according to anexemplary embodiment. The animation image 660 may be an animation inwhich a candle fire object 661 shakes. The electronic device 101 maypreviously set an event of a sound input as an event for playing ananimation image for the candle fire object 661. The user may blow air onthe electronic device 101, and the microphone of the electronic device101 may obtain a sound from the user. The electronic device 101 maydetermine that an event is detected through obtaining the sound to playan animation image, e.g., in which the candle fire object 661 isshaking.

Although not shown, the electronic device 101 may set the user's viewingpoint to the first event. The electronic device 101 may obtain theuser's viewing point by analyzing the obtained preview image and mayplay the animation image for the object corresponding to the eventdepending on whether the obtained viewing point complies with the firstevent.

FIG. 7A is a flowchart illustrating a method of generating an animationimage according to an exemplary embodiment. The method may be executedthe electronic device 101, and the electronic device may be controlledto execute the method. FIG. 7B is a flowchart illustrating a method ofplaying an animation image according to an exemplary embodiment. Themethod may be executed the electronic device 101, and the electronicdevice may be controlled to execute the method. An embodiment isdescribed in detail with reference to FIGS. 7A and 7B along with FIGS.8A and 8B. FIGS. 8A and 8B are views illustrating examples of generatingand playing animation images according to one or more exemplaryembodiments.

Referring to FIG. 7A, the electronic device 101 may obtain a pluralityof images in operation 710. For example, the electronic device 101 mayobtain a first image 610 and a second image 620, as shown in FIGS. 6Aand 6B.

In operation 720, the electronic device 101 may segment each of theplurality of images and may obtain an object from each of the pluralityof images.

In operation 730, the electronic device 101 may obtain a first event perobject using the plurality of images. For example, the electronic device101 may apply a face recognition algorithm to the first image 610 andmay obtain the information that the face object is expressionless fromthe first image 610. The electronic device 101 may apply a facerecognition algorithm to the second image 620 and may obtain theinformation that the face object is smiling from the second image 620.According to an exemplary embodiment, the face recognition algorithm maydetermine a smiling face, frowned face, or expressionless face based onat least one of whether a tooth is visible, a direction of a mouthcorner, a shape of an eye, whether there is an eye wrinkle, and whetherthere is a wrinkle between the eyebrows. The electronic device 101 maydetermine that the animation image switches from an expressionless faceto a smiling face and may set a smile to the animation imageinformation. Further, the electronic device 101 may set the first event,which is a condition for playing the animation image, to the smile thatis animation image information. According to an exemplary embodiment,the user may input the first event to the electronic device 101, and theelectronic device 101 may set the first event to the smile based on theuser's input. When the smile is set to the first event, the electronicdevice 101 may include hardware information for detecting the smile andcontent detected from the hardware. For example, the electronic device101 may store the hardware information, “camera module” that may detecta first event of a smile, and the content detected by the hardware, “asmile is detected from a captured image,” as event informationcorresponding to the “face object.”

In operation 740, the electronic device 101 may store the obtained firstevent in association with an animation image generated per object. Forexample, the electronic device 101 may store information on the firstevent in metadata of the animation image. The electronic device 101 maystore the information on the first event corresponding to the “faceobject.”

Referring to FIG. 7B, the electronic device 101 may obtain a previewimage upon play, in operation 750. For example, as shown in FIG. 8A, theelectronic device 101 may obtain the preview image through the cameramodule 830 disposed on a front surface thereof. The electronic device101 may display a still image 850 of an animation image. The electronicdevice 101 may identify hardware information for detecting the firstevent based on the information on the first event and may activate thecamera module 830 corresponding to the same. The camera module 830 mayobtain a preview image and the electronic device 101 might not displaythe preview image. The electronic device 101 may display an eventinformation deriving object 851 on the still image 850 based on thefirst event information.

In operation 760, the electronic device 101 may determine whether thefirst event is detected as a result of analysis of the preview image.For example, as shown in FIG. 8B, the electronic device 101 may obtain aface image of the user 840 and may apply a face recognition algorithm tothe preview image to determine the look of the user 840. As shown inFIG. 8A, the electronic device 101 may detect the information that theuser 840 has no facial expression from the preview image and maydetermine that a first event of a smile is not detected.

Specifically, the electronic device 101 may analyze the presence of asmile using an image captured for an outer appearance. For example, forthe given image, facial features and orientation are calculated by theActive Appearance Model (AAM). Based on the AAM points, a secondelectronic device 102 may determine a mesh corresponding to the face,identify other features of the face, such as a nose, a lip, or a mouth,and may identify the presence or absence of a smile from the features.

When the first event is detected, the electronic device 101 may play ananimation image associated with the first event in operation 770. Forexample, as shown in FIG. 8B, the electronic device 101 may obtain apreview image for the user 840. The electronic device 101 may apply aface recognition algorithm to the preview image to determine that theuser 840 is smiling. That is, the electronic device 101 may determinethat the first event corresponding to the face object is detected. Theelectronic device 101 may play the animation image for the face objectcorresponding to the detection of the first event to change a faceobject area of the still image 850 to another image 852 of the animationimage and display the same. Although, as shown in FIGS. 8A and 8B, theelectronic device 101 plays the animation image as if the electronicdevice 101 changes the still image 850 to another image 852, this ismerely for ease of description. The electronic device 101 may play theanimation image by sequentially changing the plurality of imagesincluded in the animation image from the still image 850 and displayingthe same. As described above, the electronic device 101 may play theanimation image only for the face area such as the user's eye, nose, ormouth while maintaining the display of the still image for the remainingarea.

As described above, according to an exemplary embodiment, the electronicdevice 101 may set the first event per object based on the informationobtained from the plurality of images constituting the animation image.Or, the electronic device 101 may set the first event based on theuser's input. Embodiments in which the first event is based on variousinputs from a user are described below.

The electronic device 101 may set the user's viewing point to the firstevent. The electronic device 101 may obtain the user's viewing point byanalyzing the obtained preview image and may play the animation imagedepending on whether the obtained viewing point complies with the firstevent.

FIG. 9A is a flowchart illustrating a method of generating an animationimage according to an exemplary embodiment. The method may be executedthe electronic device 101, and the electronic device may be controlledto execute the method. FIG. 9B is a flowchart illustrating a method ofplaying an animation image according to an exemplary embodiment. Themethod may be executed the electronic device 101, and the electronicdevice may be controlled to execute the method. One or more exemplaryembodiments are described in detail with reference to FIGS. 9A and 9Balong with FIGS. 10A to 10G. FIGS. 10A to 10G are views illustratingexamples of generating and playing animation images according to one ormore exemplary embodiments.

Referring to FIG. 9A, the first electronic device may obtain a firstimage and a second image in operation 910. The electronic device 101 maycapture an image of an object 1000 at a first view as shown in FIG. 10Ato obtain a first image 1010 and may capture an image of an object 1000at a second view as shown in FIG. 10B to obtain a second image 1020. Thehair of the object 1000 at the second view may be bent to the right, andaccordingly, the second image 1020 may include the hair that has beenbent to the right.

In operation 920, the electronic device 101 may generate an animationimage per object using the first image 810 and the second image 820. Inparticular, the electronic device 101 may generate an animation imagefor a first object, e.g., a hair object.

According to an exemplary embodiment, the electronic device 101 maydisplay a graphic user interface 1030 for obtaining an event as shown inFIG. 10C. The graphic user interface 1030 may include various schemes1031 to 1034 that may obtain a first event corresponding to the hairobject. The user may designate any one of various schemes 1031 to 1034of the graphic user interface 1030. The electronic device 101 mayactivate hardware that may obtain the first event according to thedesignated scheme and may obtain the first event through the activatedhardware. For example, when the microphone 1031 is designated as ascheme to obtain the first event as shown in FIG. 10C, the electronicdevice 101 may activate at least one of the included microphones 1041 to1043.

In operation 930, the electronic device 101 may obtain the event throughthe at least one microphone modules 1041, 1042, and 1043. The electronicdevice 101 may analyze a sound obtained through the at least onemicrophone 1041 to 1043 to obtain sound information and may set theobtained sound information to the first event. For example, as shown inFIG. 10D, the user of the electronic device 101 may speak a sound 1044.The electronic device 101 may obtain the sound 1044 sent from the userthrough at least one microphone 1041 to 1043. The electronic device 101may analyze the sound obtained from each of the at least one microphone1041 to 1043 to determine sound information including at least one ofthe magnitude of the sound, a voice recognition result of the sound,duration of the sound, and a direction in which the sound is generated.In particular, when the electronic device 101 has a plurality ofmicrophones, the electronic device 101 may determine the direction inwhich the sound is generated using the sound obtained from each of theplurality of microphones. For example, the sound information may includethe information that the sound is generated from a left side. Theelectronic device 101 may set the sound information to the first event.Meanwhile, as the first event information, the “microphone” that isinformation on hardware that may obtain the first event and soundinformation that is content detected by the microphone may be stored.

In operation 940, the electronic device 101 may store the obtained firstevent in association with a first object of the generated animationimage. For example, the electronic device 101 may store information onthe first event in metadata of the animation image. Or, the electronicdevice 101 may store information on the first event, with theinformation mapped to the animation image.

Referring to FIG. 9B, the electronic device 101 may obtain a soundthrough a microphone in operation 950. For example, as shown in FIG.10F, the electronic device 101 may obtain a sound through at least onemicrophone 1041 to 1043. The electronic device 101 may display thereceived animation image and may display the still image 1060 of theanimation image. The electronic device 101 may identify hardwareinformation for detecting the first event based on the information onthe first event and may activate the microphones 1041, 1042, and 1043corresponding to the same. The microphones 1041, 1042, and 1043 each mayobtain a sound. The electronic device 101 may display an eventinformation deriving object 1061 on the still image 1060 based on thefirst event information (FIG. 10E).

In operation 960, the electronic device 101 may determine whether thefirst event is detected as a result of analysis of the sound. Forexample, as shown in FIG. 10F, the electronic device 101 may obtain asound 1054 sent from the user and may determine sound information basedon a result of analysis of the sound. As shown in FIG. 10F, theelectronic device 101 may detect the information that the user has sentthe sound from a left side and may determine that the first event isdetected.

When the first event is detected, the electronic device 101 may play ananimation image of a first object corresponding to the first event inoperation 970. For example, as shown in FIG. 10F, the electronic device101 may change a hair object of the still image 1060 to another image1061 of the animation image and display the same. Although theelectronic device 101 plays the animation image as if the electronicdevice 101 changes the still image 1060 to another image 1061, as shownin FIGS. 10E and 10F, this is merely for ease of description. Theelectronic device 101 may play the animation image by sequentiallychanging the plurality of images included in the animation image fromthe still image 1060. According to an exemplary embodiment, theelectronic device 101 may play the animation only for the hair object ofthe still image 1060 and may maintain the display of the still imageexcept the hair object 1060.

Meanwhile, as shown in FIG. 10G, the user may speak a sound 1055 from aright side. In this case, the electronic device 101 may analyze thesound 1055 to determine that the sound 1055 is generated from the rightside. The electronic device 101 may determine that the first event isnot detected based on the information that the direction in which thesound is generated differs from the direction in which the sound of thefirst event is generated. The electronic device 101 may maintain thedisplay of the still image 1060 and may display an object 1062describing the detected event.

Meanwhile, although the first event is described as the direction inwhich the sound is generated as described above, this is merely anexample. According to an exemplary embodiment, the electronic device 101may set the first event to at least one of the magnitude of the sound, avoice recognition result of the sound, a duration of the sound, and adirection in which the sound is generated.

FIG. 11A is a flowchart illustrating a method of generating an animationimage according to an exemplary embodiment. The method may be executedthe electronic device 101, and the electronic device may be controlledto execute the method. FIG. 11B is a flowchart illustrating a method ofplaying an animation image according to an exemplary embodiment. Themethod may be executed the electronic device 101, and the electronicdevice may be controlled to execute the method. One or more exemplaryembodiments are described in detail with reference to FIGS. 11A and 11Balong with FIGS. 12A to 12E. FIGS. 12A to 12E are views illustratingexamples of generating and playing animation images according to one ormore exemplary embodiments.

Referring to FIG. 11A, the first electronic device may obtain a firstimage and a second image in operation 1110. The electronic device 101may capture an image of an object 1000 at a first view as shown in FIG.10A to obtain a first image 1010 and may capture an image of an object1000 at a second view as shown in FIG. 10B to obtain a second image1020.

In operation 1120, the electronic device 101 may generate an animationimage using the first image 1010 and the second image 1020. Theelectronic device 101 may generate an animation image in which the hairobject changes from the first image 1010 to the second image 1020. Asdescribed above, the electronic device 101 may obtain multiple imagescaptured between a first view and a second view between the two imagesand may generate an animation image using the first image 1010, thesecond image 1020, and the multiple images.

In operation 1130, the electronic device 101 may obtain an eventcorresponding to the first object through a touchscreen. According to anexemplary embodiment, the electronic device 101 may display a graphicuser interface 1030 for obtaining an event as shown in FIG. 12A. Forexample, when the touchscreen is designated as a hardware to obtain thefirst event as shown in FIG. 12A, the electronic device 101 may activatethe touchscreen included in the electronic device 101. The electronicdevice 101 may obtain touch information through the touchscreen and mayset the obtained touch information to the first event. For example, asshown in FIG. 12B, the user of the electronic device 101 may input atouch 1220. Although the user directly touches the touchscreen as shownin FIG. 12B, this is merely an example. According to an exemplaryembodiment, the electronic device 101 may obtain a hovering input thatdoes not directly touch the touchscreen or an input of viewing aparticular point on the touchscreen and may set the same as the firstevent.

The electronic device 101 may analyze the touch 1220 obtained from thetouchscreen and may determine touch information including at least oneof the position, type, direction, and size of the touch 1220. Forexample, the touch information may include the information that thedirection of the touch 1220 is a right side direction. The electronicdevice 101 may set the first event to the information that the directionof the touch 1220 is the right side direction. Meanwhile, as the firstevent information, the “touchscreen” that is information on hardwarethat may obtain the first event and touch information that is contentdetected by the hardware may be stored.

In operation 1140, the electronic device 101 may store the obtainedfirst event in association with the generated animation image. Forexample, the electronic device 101 may store information on the firstevent in metadata of the animation image. Or, the electronic device 101may store information on the first event, with the information mapped tothe animation image.

Referring to FIG. 11B, the electronic device 101 may obtain a touchinput through a touchscreen in operation 1150. For example, as shown inFIGS. 12C and 12D, the electronic device 101 may obtain a touch 1241through the touchscreen. The electronic device 101 may display thereceived animation image and may display the still image 1230 of theanimation image. The electronic device 101 may identify hardwareinformation for detecting the first event based on the information onthe first event and may activate the touchscreen corresponding to thesame. The touchscreen may obtain a touch input. The electronic device101 may display an event information deriving object 1231 on the stillimage 1030 based on the first event information.

In operation 1160, the electronic device 101 may determine whether afirst event corresponding to the first object is detected as a result ofanalysis of the touch. For example, as shown in FIG. 12D, the electronicdevice 101 may obtain the touch 1241 input by the user and may determinethe touch information based on the result of analysis of the touch. Asshown in FIG. 12D, the electronic device 101 may detect the informationthat the user has input a right-directional touch and may determine thatthe first event is detected.

When the first event is detected, the electronic device 101 may play ananimation image associated with the first event in operation 1170. Forexample, as shown in FIG. 12D, the electronic device 101 may change ahair object of the still image 1230 to the hair object of the anotherimage 1240 of the animation image and display the same. Although theelectronic device 101 plays the animation image as if the electronicdevice 101 changes the still image 1230 to another image 1240 anddisplays the same as shown in FIGS. 12C and 12D, this is merely for easeof description. The electronic device 101 may play the animation imageby sequentially changing the plurality of images included in theanimation image from the still image 1230 and displaying the same.According to an exemplary embodiment, the electronic device 101 may playthe animation only for the hair object storing the animation and maymaintain the display of the remainder of the still image 1230.

Meanwhile, as shown in FIG. 12E, the user may input a left-directionaltouch 1242. In this case, the electronic device 101 may analyze thetouch 1242 to determine that the direction of the touch 1242 is a leftside direction. The electronic device 101 may determine that the firstevent is not detected based on the information that the direction of thetouch 1242 differs from the direction of the touch of the first event.The electronic device 101 may maintain the display of the still image1230 and may display an object 1232 describing the first event.

Although the first event is described as the direction of a touch, thisis merely an example. According to an exemplary embodiment, theelectronic device may set the first event to at least one of a position,type, direction, and size of a touch input.

FIG. 13A is a flowchart illustrating a method of generating an animationimage according to an exemplary embodiment. The method may be executedthe electronic device 101, and the electronic device may be controlledto execute the method. FIG. 13B is a flowchart illustrating a method ofplaying an animation image according to an exemplary embodiment. Themethod may be executed the electronic device 101, and the electronicdevice may be controlled to execute the method. One or more exemplaryembodiments are described in detail with reference to FIGS. 13A and 13Balong with FIGS. 14A to 14E. FIGS. 14A to 14E are views illustratingexamples of generating and playing animation images according to one ormore exemplary embodiments.

Referring to FIG. 13A, the electronic device 101 may obtain a firstimage and a second image in operation 1310. The electronic device 101may capture an image of an object 1000 at a first view as shown in FIG.10A to obtain a first image 1010 and may capture an image of an object1000 at a second view as shown in FIG. 10B to obtain a second image1000.

In operation 1320, the electronic device 101 may generate an animationimage using the first image 1010 and the second image 1020. Theelectronic device 101 may generate an animation image changing from thefirst image 1010 to the second image 1020. As described above, theelectronic device 101 may obtain multiple images captured between afirst view and a second view between the two images and may generate ananimation image using the first image 1010, the second image 1020, andthe multiple images.

In operation 1330, the electronic device 101 may obtain an eventcorresponding to a first object, i.e., a hair object, through anacceleration sensor. According to an exemplary embodiment, theelectronic device 101 may display a graphic user interface 1030 forobtaining an event as shown in FIG. 14A. For example, when theacceleration sensor is designated as a scheme to obtain the first eventas shown in FIG. 14A, the electronic device 101 may activate theacceleration sensor included in the electronic device 101. Theelectronic device 101 may obtain movement information of the electronicdevice 101 through the acceleration sensor and may set the obtainedacceleration information to the first event. For example, as shown inFIG. 14B, the user of the electronic device 101 may move (1420) theelectronic device 101.

The electronic device 101 may analyze the movement 1420 obtained fromthe acceleration sensor and may determine the movement informationincluding at least one of the direction, size, and speed of the movement1420. For example, the movement information may include the informationthat the direction of the movement 1420 is a right side direction. Theelectronic device 101 may set the first event to the information thatthe direction of the movement 1420 is the right side direction.Meanwhile, as the first event information, the “acceleration sensor”that is information on hardware that may obtain the first event andmovement information that is content detected by the hardware may bestored.

In operation 1340, the electronic device 101 may store the obtainedfirst event in association with the animation image of the first object.For example, the electronic device 101 may store information on thefirst event in metadata of the animation image, or the electronic device101 may store information on the first event, with the informationmapped to the animation image.

Referring to FIG. 13B, the electronic device 101 may detect a movement1440 of the electronic device 101 through an acceleration sensor inoperation 1350. For example, as shown in FIGS. 14C and 14D, theelectronic device 101 may detect the movement 1440 of the electronicdevice 101 through the acceleration sensor. The electronic device 101may display the received animation image and may display the still image1430 of the animation image. The electronic device 101 may identifyhardware information for detecting the first event based on theinformation on the first event and may activate the acceleration sensorcorresponding to the same. The acceleration sensor may detect themovement 1440. The electronic device 101 may display an eventinformation deriving object 1431 on the still image 1430 based on thefirst event information.

In operation 1360, the electronic device 101 may determine whether thefirst event corresponding to the first object, i.e., a hair object, isdetected using a result of analysis of the movement. For example, asshown in FIG. 14D, the electronic device 101 may obtain the movement1440 input by the user and may determine whether the first eventcorresponding to the first object is detected based on the movementinformation. As shown in FIG. 14D, the electronic device 101 may detectthe information that the user has inputted a right-directional movement1440 and may determine that the first event is detected.

When the first event is detected, the electronic device 101 may play ananimation image associated with the first event in operation 1370. Forexample, as shown in FIG. 14D, the electronic device 101 may change thestill image 1430 to another image 1431 of the animation image anddisplay the same. Although the electronic device 101 plays the animationimage as if the electronic device 101 changes the still image 1430 toanother image 1431, as shown in FIGS. 14C and 14D, this is merely forease of description. The electronic device 101 may play the animationimage for the first object by sequentially changing the plurality ofimages included in the animation image from the still image 1430 anddisplaying the same. According to an exemplary embodiment, theelectronic device 101 may play the animation only for the hair objectand may maintain the display of the remainder of the still image 1430.

Meanwhile, as shown in FIG. 14E, the user may move the electronic device101 in a left direction. In this case, the electronic device 101 mayanalyze the movement 1441 to determine that the direction of themovement 1441 is a left side direction. The electronic device 101 maydetermine that the first event is not detected based on the informationthat the direction of the movement 1441 differs from the direction ofthe first event. The electronic device 101 may maintain the display ofthe still image 1430 and may display an object 1432 describing the firstevent.

Although the first event may be a direction of a movement, this ismerely an example. According to an exemplary embodiment, the electronicdevice 101 may set at least one of the direction, size, and speed of themovement to the first event.

FIG. 15 is a flowchart illustrating a method of generating an animationimage according to an exemplary embodiment. The method may be executedthe electronic device 101, and the electronic device may be controlledto execute the method.

In operation 1510, the electronic device 101 may obtain a plurality ofimages. For example, the electronic device 101 may obtain a first imageand a second image including a first object and a second object.

In operation 1520, the electronic device 101 may perform objectsegmentation on the first image of the plurality of images. According toan exemplary embodiment, the electronic device 101 may obtain a depthmap corresponding to the plurality of images and may perform the objectsegmentation based on depth information on the obtained depth map.Alternatively, the electronic device 101 may detect feature points suchas edges or blobs from the plurality of images and may perform theobject segmentation based on the detected feature points. Accordingly,the electronic device 101 may segment a first object and a second objectfrom the first image and a first object and a second object from thesecond image.

In operation 1530, the electronic device 101 may generate animationinformation per object. The electronic device 101 may compare theposition of the first object in the first image with the position of thefirst object in the second image and may generate first animationinformation including position change information. Further, theelectronic device 101 may compare the position of the second object inthe first image with the position of the second object in the secondimage and may generate second animation information including positionchange information.

In operation 1540, the electronic device 101 may obtain an eventcorresponding to each per-object animation information. The electronicdevice 101 may set an event, a condition for starting an animation, foreach of the first object and the second object. As described above,according to an exemplary embodiment, the electronic device 101 may setan event based on an image analysis result or an external input.Accordingly, the electronic device 101 may set an event as shown in, forexample, Table 1.

In operation 1550, the electronic device 101 may generate an animationimage in which an event is associated with per-object animationinformation. The electronic device 101 may transmit the animation imageto the second electronic device 102 or may play the animation image.

The second electronic device 102, when detecting an event, may play ananimation of an object corresponding to the same. For example, thesecond electronic device 102 may obtain a preview image through thecamera module, and the second electronic device 102 may analyze thepreview image to detect a smiling face. The second electronic device 102may play an animation for the first object corresponding to thedetection of the smiling face and may maintain the display of the secondobject in the still image. The second electronic device 102 may detect amovement of the second electronic device 102 through an accelerationsensor, and the second electronic device 102 may detect motioninformation in a right direction. The second electronic device 102 mayplay an animation for the second object corresponding to the detectionof the movement in the right direction and may maintain the display ofthe first object in the still image.

FIGS. 16A and 16B are flowcharts illustrating methods for controlling anelectronic device according to one or more exemplary embodiments.

In operation 1610, the electronic device 101 may obtain a plurality ofimages. In operation 1620, the electronic device 101 may generate ananimation image corresponding to a first image, i.e., a still image, ofthe plurality of images based on the plurality of images. In operation1630, the electronic device 101 may obtain a first event to play theanimation image.

In operation 1640, the electronic device 101 may obtain a sound outputwhile the animation image is played. The electronic device 101 mayobtain a sound generated from around the electronic device 101 whileobtaining the plurality of images constituting the animation image.Alternatively, the electronic device 101 may obtain a sound before orafter obtaining the plurality of images. Operation 1640 may be before,during, or after operation 1620, accordingly.

In operation 1650, the electronic device 101 may store the first eventand the sound in association with the animation image. In operation1660, the electronic device 101 may transmit the animation image to asecond electronic device 102.

In operation 1670, the second electronic device 102 may detect a firstevent. As described above, the second electronic device 102 may activatehardware that may detect the first event and may analyze a signal fromthe hardware to detect the first event.

In operation 1680, the second electronic device 102 may output a soundwhile playing the animation image, corresponding to the detection of thefirst event. Accordingly, the user of the second electronic device 102may view the animation image including the sound.

FIG. 16B is a flowchart illustrating a method for controlling anelectronic device according to an exemplary embodiment.

In operation 1691, the electronic device 101 may determine a soundgeneration object in a first image based on a direction in which a soundis output. As described above, the electronic device 101 may include aplurality of microphones and may analyze sounds respectively obtainedfrom the plurality of microphones to analyze a direction in which asound is generated. For example, when the electronic device 101determines that a direction in which a sound is generated is a firstdirection, the electronic device 101 may determine an objectcorresponding to the first direction in the still image and maydetermine the same as a sound generation object.

In operation 1693, the electronic device 101 may generate an animationimage by storing the sound generation object, direction in which thesound is output, and sound information in association to each other. Inoperation 1695, the electronic device 101 may transmit the animationimage to a second electronic device 102.

In operation 1697, the second electronic device 102 may detect anambient sound to determine the direction in which the sound is generatedand may determine whether the detected direction in which the sound isgenerated corresponds to the sound output direction stored in theanimation image.

When the detected sound output direction corresponds to the outputdirection stored in the animation image, the second electronic device102 may output the sound while playing the animation for the soundgeneration object in operation 1699.

Meanwhile, although the electronic device 101 transmits soundinformation to the second electronic device 102 as described above, thisis merely an example. When playing an animation corresponding to aparticular object, the electronic device 101 may also output a soundcorresponding to the same.

FIG. 17 is a view representing a data format of an animation imageaccording to an exemplary embodiment. According to an exemplaryembodiment, each frame corresponding to the image data is stored as acompressed image data sequence 1701. Audio information 1702corresponding to each of the microphones is also stored in at least aportion of the image metadata 1703. The live image metadata 1703 maystore a first event per object, which is a condition for playing ananimation image, that is, trigger information and other imageparameter-related information. Further, the metadata 1703 may also storea depth map.

FIG. 18 is a view representing a file format of an animation imageaccording to an exemplary embodiment. According to an exemplaryembodiment, the image data 1802 is compressed into video data using astandard video compression format, such as H.264 or moving pictureexperts group 4 (MPEG4), and is inserted into a container, such as anMPEG 4 part 14 (MP4) or a 3GPP file format (3GP). By contrast, a firstframe 1801 of the sequence of frames is stored as compressed image data.This is a frame corresponding to the still image and might not be thefirst frame as described above. The audio information is stored as audiomicrophone data 1803. The number of audio files corresponds to thenumber of microphones present in the capturing device. The live imagemetadata 1804 may include metadata of an animation to be implemented inthe image and a depth map. The image metadata 1804 may store the firstevent.

FIG. 19 is a flowchart illustrating an operation of an electronic deviceplaying an animation image according to an exemplary embodiment.

In operation 1910, the second electronic device 102 may parse metadataof a received animation image. For example, when receiving the animationimage having the same format shown in FIG. 17 or 18, the secondelectronic device 102 may parse the metadata.

In operation 1920, the second electronic device 102 may determineanimation information per object in the animation image and acorresponding event based on a result of the parsing. For example, thesecond electronic device 102 may determine a per-object correspondingevent as shown in Table 1 based on the parsed result, and may determineanimation information for each object. The second electronic device 102may determine the animation information from image data.

In operation 1930, the second electronic device 102 may obtain a firstevent. The second electronic device 102 may identify an objectcorresponding to the first event. In operation 1940, the secondelectronic device 102 may segment the object of the animation image. Inoperation 1950, the second electronic device 102, when a hidden areaoccurs, may correct the corresponding area. In operation 1960, thesecond electronic device 102 may play an animation for the objectcorresponding to the first event.

FIG. 20 is a block diagram of an electronic device configured togenerate and record an animation corresponding to a still imageaccording to an exemplary embodiment.

The electronic device includes an input/output interface 2010, aprocessor 2020, and a multiplexer 2030. The input/output interface 2010may obtain images. The input/output interface 2010 may be implementedas, for example, a camera module or a communication module. Further, theinput/output interface 2010 may include one or more input modules, suchas burst shot modules, a depth estimation module for determining a depthmap for the captured images, and a sound recorder module used to recordsounds captured using microphones included in the capturing device.Similarly, the processor 2020 may include a registration andstabilization module and a trigger detection module that processes thecaptured frames to render images animated from the still image. Theanimated images are stored within image metadata and includes a sequenceof frames corresponding to the still image, a depth map of the stillimage, and audio information corresponding to one or more objectspresent in the image. The image metadata may be generated bymultiplexing the above-described data using the multiplexer 2030.

FIG. 21 is a block diagram of an electronic device configured to recordan animation corresponding to a still image according to an exemplaryembodiment.

An image capturing module 2101 includes an image capturing device thatmay capture a sequence of frames. The sequence of frames may be multipleindividual images or one or more video files. The sequence of frames iscaptured using at least one of a camera and a video camera. Further, thesequence of frames may be extracted from a video file that has beenalready captured or stored in the memory device. According to anexemplary embodiment, the image capturing device is connected with aburst shot module. The burst shot module internally generates a burstshot command. The burst shot command triggers a capture of the sequenceof frames. The number of the images in the burst shot and a time gap incapturing between any two consecutive frames may be defined based on ananimation period of the image. The number of the images in the burstshot and a time gap in capturing between any two consecutive frames maybe previously defined.

A depth prediction module 2102 may determine a depth map of the capturedimages. The depth map information may be derived from the capturedsequence of frames. The depth prediction module 2102 may be connectedwith the burst shot module. The depth prediction module 2102 may computea depth map corresponding to each image in the burst shot. The depth mapmay be determined using a sequence of frames captured using variousschemes for detecting or predicting a depth, such as, as non-limitingexamples, time-of-flight based depth sensors, a stereo camera, infrared(IR) projection, focus bracketing, and the camera.

The time-of-flight (TOF) based depth sensors each include a common TOFsensor, a modulated light source, such as a laser or a light emittingdiode (LED), an array of pixels each capable of detecting the phase ofincident light, and a common optical system focusing the light to thesensor. The light is provided as a modulation envelope obtained byquickly turning on and off the light source. Distance/depth measurementmay be achieved by measuring the phase of the modulation envelope of thelight received by the pixel array.

The stereo camera computes a depth map based on a difference between twoimages captured at the same time from two different camera sensors. Amovement of objects on a scene over stereo images is inverselyproportional to the depth. The depth is computed based on stereomatching that is the process of capturing two or more images, detectingmatching pixels from the images, and converting their 2D positions to 3Ddepths to estimate a 3D model of the scene.

By the IR projection scheme, a known structured light pattern may beprojected on the scene, and depth may be inferred based on a change inthe pattern.

Focus bracketing obtains a depth by capturing multiple images of a sceneat different focal lengths. A depth map is computed based on changes insharpness over the images.

The electronic device may also estimate depth information from visualcamera frame data using a segmentation algorithm using color, texture,shape, or other image-related attributes. According to an exemplaryembodiment, the depth map is independently obtained per frame. Accordingto an exemplary embodiment, the depth map is computed for the firstframe. Further, the depth map for the remaining frames may also beobtained by tracking the depth map for the first frame over the sequenceof frames, such as, as non-limiting examples, shape/silhouette/blobtracking and a particle filter.

The microphones and sound recorder 2104 may be other types of inputmodules used to record audio information corresponding to one or moreobjects present in the image.

The captured frames and depth map are provided to a correction module2105. According to an exemplary embodiment, each still image and depthmap is registered in the first frame to correct alignment errors.Further, a correction algorithm may be executed to correct an irregularcamera movement due to a hand shake. The stabilization algorithm mayinclude optical image stabilization, software-based digital imagestabilization, or a combination of the optical image stabilization andthe software-based digital image stabilization. According to anexemplary embodiment, the correction module 2105 detects a conversionfrom a previous frame to a current frame using feature detection andLucas-Kanade light flow for a plurality of or all of the frames. Theconversion includes three parameters such as dx (movement in an xdirection), dy (movement in a y direction), and da (angle). Theconversion parameters are accumulated to obtain the trajectory of x, y,and angle in each frame. The trajectory is smoothed using a Kalmanfilter. The corrected conversion applies to the frames. This stabilizesthe images. When the frames are stabilized, registration is performed.While the frames are registered, conversion parameters for all of theframes are detected using a feature extraction and light flow.Thereafter, all of the frames are turned back to the first frame usingthe components of the conversion parameters.

The processor includes an event detection module 2106. The eventdetection module 2106 analyzes the images to identify the occurrence ofthe event. Triggers may include at least one of a touch, a stare, atalk, a shake, and a gesture. The event may be, as non-limitingexamples, the number of depth layers, smiles, or eye blinks. Accordingto an exemplary embodiment, the images are analyzed for the presence ofa face/smile. For the given image, facial features and a direction arecomputed with the active appearance model (AAM). A mesh is defined basedon AAM points, and other facial features, such as a nose, lip, andmouth, are identified. The presence of a smile is identified using theAAM points. The information is stored in metadata of the file. Theregistered images and registered depth map are provided to themultiplexer 2030. The multiplexer 2030 multiplexes the image, depth map,and sound streams (from multiple microphones) into image metadata.Meanwhile, the event detection module 2106 may be implemented not inimage analysis, but using various types of hardware such as amicrophone, proximity sensor, or motion information sensor. Theprocessor may also detect an event based on a signal from the hardware.

FIG. 22 is a block diagram of an electronic device configured to play ananimation recorded in at least one object of a still image correspondingto an animation image according to an exemplary embodiment.

According to an exemplary embodiment, the electronic device includes ademultiplexer 2201, an animation renderer 2202, e.g., an animationrendering module, a display 2203, and a sound generator 2204, e.g., aspeaker or a sound generation module. The demultiplexer 2201 maydemultiplex a composite file generated by the multiplexer. For example,when an animation image having the same format shown in FIGS. 15 and 16is received, the demultiplexer 2201 may demultiplex the animation imageinto a plurality of areas. The sound streams demultiplexed from theanimation image may be transmitted to the sound generator 2204. Theimages and depth map are provided to the animation renderer 2202re-generating the animation in the image corresponding to the detectionof an event. The display 2203 may play the animation rendered by theanimation renderer 2202.

FIG. 23 is a block diagram of an electronic device configured to play ananimation image according to an exemplary embodiment.

The demultiplexer 2300 parses the image metadata and extracts the image,depth map and sound streams. The sound stream is transmitted to a sourceseparation module 2306. By contrast, the image and depth map aretransmitted to an envelope extraction module 2302. The eventcorresponding to the animation is extracted by the demultiplexer 2300.The event is provided to the event detection module 2301. The eventdetection module 2301 may activate hardware corresponding to the eventand may detect an event based on a signal from the activated hardware.Information on the event may be transmitted to the envelope extractionmodule 2302. The information on the event may include, for example, acoordinate of the event. The coordinate of the event may be a coordinateof a touch point on the image touched by the user.

According to an exemplary embodiment, when the still image includes afigure's smile, this information is stored in the file at the time ofcapturing the still image. When the image is viewed, this information isdetected and is provided to the user as an indication of the presence ofthe smile (e.g., a smile icon). The user interaction may be “when theuser smiles, an animation image smiles again.” The envelope extractionmodule 2302 receives the coordinate of the event for the event detectionmodule 2301 and performs segmentation on the desired object from thedepth map. A scheme useful for the depth-based segmentation is used forsegmentation of images. The segmentation of images helps to identify theforeground objects and background objects. This module also analyzes allof the frames that are part of the segmented depth and the captured fileto extract an envelope of the moving object. The identified object areais transmitted to a sound localization module 2307. An occlusiondetection module 2303 identifies the presence of occlusion based on thesegmented images. The occlusion is an overlap between two distinctobjects in the image. An occlusion correction module 2304 removes thehidden area and compensates for the hidden area based on informationpresent in adjacent frames of the sequence of frames. A blending module2305 copies an area corresponding to the segmented images using a depthmap from each frame and adds the same to the first frame of the sequenceof frames. The added boundary areas are blended to insure a seamlesstransition, generating a composite image. According to an exemplaryembodiment, blending schemes, such as alpha blending, Laplacianblending, Poisson blending, etc., are used to generate the compositeimage. Each composite image is rendered on a display 2309 to reproducethe same operation of the object that was present upon capture.

The source separation module 2306 filters each sound source togetherwith direction information from multiple sound streams recorded usingmultiple microphones. This may be achieved by analysis based oninteraural time differences (ITDs), interaural intensity differences(IIDs), and interaural phase differences (IPDs). The sound localizationmodule 2307 localizes the sound sources based on the position of theextracted envelope. According to an exemplary embodiment, thelocalization of sound means identifying a sound spread using the sounddirection information. When there is a sound corresponding to the usertouch object, the corresponding sound is played using a speaker 2308.One or more of the above modules may be implemented as hardware,software, or a combination of hardware and software, such as a generalor special purpose processor and computer readable code.

According to an exemplary embodiment, a method for controlling anelectronic device may include obtaining a plurality of images;displaying a first image of the plurality of images; detecting a firstevent set to start to play an animation image for a first object of thefirst image; and playing the animation image for the first object usingthe plurality of images.

According to an exemplary embodiment, the method may further includemaintaining the display of the first image for objects other than thefirst object.

According to an exemplary embodiment, the method may further includesegmenting the first object in each of the plurality of images.Segmenting the first object in each of the plurality of images mayinclude: obtaining a depth map for each of the plurality of images; andsegmenting the first object in each of the plurality of images based onthe depth map for each of the plurality of images. Segmenting the firstobject in each of the plurality of images may include: obtaining imageinformation for each of the plurality of images; and segmenting thefirst object in each of the plurality of images based on the imageinformation for each of the plurality of images.

According to an exemplary embodiment, detecting the first event mayinclude detecting a touch on an area corresponding to the first objectof the displayed animation image or detecting a user's view on an areacorresponding to the first object of the displayed animation image.

According to an exemplary embodiment, detecting the first event mayinclude detecting an object having a movement exceeding a threshold ofthe first image.

According to an exemplary embodiment, detecting the first event mayinclude detecting at least one of a sound set to the first event, motioninformation set to the first event, and an image analysis result set tothe first event.

According to an exemplary embodiment, the method may further include:correcting a hidden area of the plurality of images; and playing ananimation for the first object using the plurality of corrected images.

According to an exemplary embodiment, the method may further include:obtaining a sound while obtaining the plurality of images; andoutputting the obtained sound while playing an animation for the firstobject.

According to an exemplary embodiment, a method for controlling anelectronic device may include: obtaining a plurality of images;generating an animation image corresponding to a first object of a firstimage of the plurality of images based on the plurality of images;obtaining a first event to play the animation image corresponding to thefirst object; and storing the first event in association with theanimation image.

According to an exemplary embodiment, obtaining the first event mayinclude: obtaining the first event using at least one of the pluralityof images.

According to an exemplary embodiment, obtaining the first event mayinclude obtaining the first event based on a detected input.

According to an exemplary embodiment, the method may further include:obtaining a sound around the electronic device; and storing the obtainedsound in association with the animation image.

According to an exemplary embodiment, the method may further include:obtaining information for segmenting at least one of the plurality ofimages; and storing the information for the segmenting in associationwith the animation image.

According to an exemplary embodiment, there is provided a storage mediumstoring instructions configured to be executed by at least one processorto enable the processor to perform at least one operation, wherein theat least one operation may include: obtaining a plurality of images;displaying a first image of the plurality of images; detecting a firstevent set to start to play an animation image for a first object of thefirst image; and playing the animation image for the first object usingthe plurality of images.

The exemplary embodiments disclosed herein are for description purposesand to provide a greater understanding of one or more exemplaryembodiments, and do not limit the scope of the present disclosure. Thescope of the present disclosure should be interpreted as including allchanges, replacements, equivalents, and various embodiments based on thetechnical spirit of the present disclosure, as would be understood byone skilled in the art.

What is claimed is:
 1. A method of playing an animation in an electronicdevice, the method comprising: storing a plurality of imagessequentially captured during a period; displaying, via the electronicdevice, a first image which is one of the plurality of images stored inthe electronic device; detecting, via the electronic device, an event toplay the animation for at least one object included in the plurality ofimages while the first image is displayed; and in responding to thedetecting the event, playing, via the electronic device, the animationfor the at least one object using the at least one object included inthe plurality of images based on a duration of detecting the event. 2.The method of claim 1, playing the animation for the at least one objectbased on the at least one object included in the plurality of imagescomprises playing the animation for the at least one object and aremaining area except the at least one object in the plurality of imagesremains constant as at least one image among the plurality of imageswhile the at least one object is animated.
 3. The method of claim 1,further comprising segmenting the at least one object in the pluralityof images.
 4. The method of claim 3, wherein the segmenting comprises:obtaining a respective depth map for each of the plurality of images;and segmenting the at least one object in the plurality of images basedon the respective depth maps.
 5. The method of claim 3, wherein thesegmenting comprises: obtaining respective image information for theplurality of images; and segmenting the at least one object in theplurality of images based on the respective image information.
 6. Themethod of claim 1, wherein the detecting comprises detecting at leastone of a touch on an area corresponding to the at least one object ofthe first image, a user's view on the area corresponding to the at leastone object of the first image, a sound, blowing or a motion of theelectronic device to play the animation as a user input.
 7. The methodof claim 1, wherein the event comprises at least one of a touch, atrigger sound, blowing, motion information, or an image analysis result.8. The method of claim 1, wherein the playing the animation for the atleast one object comprising: correcting a hidden area in at least one ofthe plurality of images if the hidden area occurs in playing theanimation based on the at least one object segmented from the pluralityof images; and playing the animation for the at least one object usingthe segmented at least one object from the plurality of images and thecorrected hidden area in the least one of the plurality of images. 9.The method of claim 1, further comprising: obtaining a sound whilecapturing the plurality of images during the period; and outputting theobtained sound while playing the animation for the at least one object.10. An electronic device, comprising: at least one processor; and amemory that stores instructions that, when executed by the at least oneprocessor, instruct the at least one processor to: store, in the memory,a plurality of images sequentially captured during a period; control todisplay a first image of the plurality of images stored in theelectronic device; detect an event to play an animation for at least oneobject included in the plurality of images while the first image isdisplayed, and in responding to the detecting the event, play theanimation for the at least one object using the at least one objectincluded in the plurality of images based on a duration of detecting theevent.
 11. The electronic device of claim 10, wherein the memory storesfurther instructions that, when executed by the at least one processor,instruct the at least one processor to play the animation for the atleast one object and a remaining area except the at least one object inthe plurality of images remains constant as at least one image among theplurality of images while the at least one object is animated.
 12. Theelectronic device of claim 10, wherein the memory stores furtherinstructions that, when executed by the at least one processor, instructthe at least one processor to perform segmentation on the at least oneobject in the plurality of images.
 13. The electronic device of claim12, wherein the memory stores further instructions that, when executedby the at least one processor, instruct the at least one processor to:obtain a respective depth map for each of the plurality of images, andperform segmentation on the at least one object in the plurality ofimages based on the respective depth maps.
 14. The electronic device ofclaim 12, wherein the memory stores further instructions that, whenexecuted by the at least one processor, instruct the at least oneprocessor to: obtain respective image information for each of theplurality of images, and perform segmentation on the at least one objectin the plurality of images based on the respective the imageinformation.
 15. The electronic device of claim 10, wherein the memorystores further instructions that, when executed by the at least oneprocessor, instruct the at least one processor to detect the event bydetecting at least one of a touch on an area corresponding to the atleast one object of the first image, a user' s view on the areacorresponding to the at least one object of the first image, a sound,blowing or a motion of the electronic device to play the animation as auser input.
 16. The electronic device of claim 10, wherein the eventcomprises at least one of a touch, a trigger sound, blowing, motioninformation, or an image analysis result.
 17. The electronic device ofclaim 10, wherein the memory stores further instructions that, whenexecuted by the at least one processor, instruct the at least oneprocessor to: correct a hidden area in at least one of the plurality ofimages if the hidden area occurs in playing the animation based on theat least one object segmented from the plurality of images, and controlto play the animation for the at least one object using the segmented atleast one object and the corrected hidden area in the at least one ofthe plurality of images.
 18. The electronic device of claim 10, whereinthe memory stores further instructions that, when executed by the atleast one processor, instruct the at least one processor to: obtain asound while capturing the plurality of images during the period, andoutput the obtained sound while playing the animation for the object.19. A method of playing an animation in an electronic device, the methodcomprising: storing a plurality of images which are sequentiallycaptured during a period or are at least part of a video file in theelectronic device; displaying, via the electronic device, at least onefirst image among the plurality of images stored in the electronicdevice; detecting a user input for playing the animation, wherein theuser input includes at least one of a touch on an area corresponding toat least one object of the at least one first image, a user's view onthe area corresponding to the at least one object of the at least onefirst image, a trigger sound, blowing or a motion of the electronicdevice; and in responding to the detecting the user input, playing, viathe electronic device, the animation using the plurality of images basedon at least one of a magnitude, a recognition result, a duration, adirection, a position, a type, a size or a speed of the user input. 20.An electronic device, comprising: a memory configured to store aplurality of images which are sequentially captured during a period orare at least part of a video file; and at least one processor configuredto : control to display at least one first image among the plurality ofimages stored in the memory, detect a user input for playing animation,wherein the user input includes at least one of a touch on an areacorresponding to at least one object of the at least one first image, auser's view on the area corresponding to the at least one object of theat least one first image, a trigger sound, blowing or a motion of theelectronic device, and in responding to the detection of the user input,play the animation using the plurality of images based on at least oneof a magnitude, a recognition result, a duration, a direction, aposition, a type, a size or a speed of the user input.